package service;

import pojo.Admin;
import pojo.Room;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;

/*
    Service层接口
 */
public interface RoomService {
    //查询所有房间信息
    public abstract ArrayList<Room> findAll();

    //房间数
    public abstract int findRoomTotal();

    //查询所有房间信息
    public abstract ArrayList<Room> findBySex(String sex);

    //根据房间id获取房间信息
    public abstract Room findById(Integer dormId);

    //新增房间信息
    public abstract int insert(Room room);

    //修改房间信息
    public abstract int update(Room room);

    //修改房间size
    public abstract int updateSize(Room room);

    //删除房间信息
    public abstract int delete(Room room);
}
